Widget: Don't refer to the old get_preferred_*()
authorDaniel Boles <dboles.src@gmail.com>
Sat, 30 Mar 2019 19:47:50 +0000 (19:47 +0000)
committerDaniel Boles <dboles.src@gmail.com>
Sat, 30 Mar 2019 19:47:50 +0000 (19:47 +0000)
measure() replaced get_preferred_height() and get_preferred_width().

gtk/gtkwidget.h

index c5617248279e6c220c26b3993d9bc2eb3714d5be..24edcc230e290965c9c0328c3702263e99180d6d 100644 (file)
@@ -168,8 +168,8 @@ struct _GtkWidget
  *   it prefers to be allocated in %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH or
  *   %GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT mode.
  *   %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH means the widget prefers to have
- *   #GtkWidgetClass.get_preferred_width() called and then
- *   #GtkWidgetClass.get_preferred_height_for_width().
+ *   #GtkWidgetClass.measure() called first to get the default width (passing
+ *   a for_size of -1), then again to get the height for said default width.
  *   %GTK_SIZE_REQUEST_CONSTANT_SIZE disables any height-for-width or
  *   width-for-height geometry management for said widget and is the
  *   default return.